package org.pettyfox.utils.io.bis

import spock.lang.Specification

import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit

class IniFileWriteReadTest extends Specification {
    def "init test"() {
        given:
        def bean = DemoBeanIni.INSTANCE
        Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate({
            -> println(bean.toString())
        }, 2, 2, TimeUnit.SECONDS)
        sleep(1000000)
    }
}
